export const OPERATION_ICONS = {
  '=': 'icon-t-equal',
  '<>': 'icon-t-notEqual',
  '<': 'icon-t-lessThan',
  '<=': 'icon-t-lessThanOrEqual',
  '>': 'icon-t-greaterThan',
  '>=': 'icon-t-greaterThanOrEqual',
  'default': 'search',
  // eslint-disable-next-line spellcheck/spell-checker
  'notcontains': 'icon-t-notContains',
  'contains': 'icon-t-contains',
  'startswith': 'icon-t-startsWith',
  'endswith': 'icon-t-endsWith',
  'between': 'icon-t-between',
};

export const OPERATION_DESCRIPTORS = {
  '=': 'equal',
  '<>': 'notEqual',
  '<': 'lessThan',
  '<=': 'lessThanOrEqual',
  '>': 'greaterThan',
  '>=': 'greaterThanOrEqual',
  'startswith': 'startsWith',
  'contains': 'contains',
  // eslint-disable-next-line spellcheck/spell-checker
  'notcontains': 'notContains',
  'endswith': 'endsWith',
  'between': 'between',
  'default': 'default',
};

export function getFilterRowOperationDescriptions($q) {
  return {
    equal: $q.lang.dataGrid.filterOperation.equal,
    notEqual: $q.lang.dataGrid.filterOperation.notEqual,
    lessThan: $q.lang.dataGrid.filterOperation.lessThan,
    lessThanOrEqual: $q.lang.dataGrid.filterOperation.lessThanOrEqual,
    greaterThan: $q.lang.dataGrid.filterOperation.greaterThan,
    greaterThanOrEqual: $q.lang.dataGrid.filterOperation.greaterThanOrEqual,
    startsWith: $q.lang.dataGrid.filterOperation.startsWith,
    contains: $q.lang.dataGrid.filterOperation.contains,
    notContains: $q.lang.dataGrid.filterOperation.notContains,
    endsWith: $q.lang.dataGrid.filterOperation.endsWith,
    between: $q.lang.dataGrid.filterOperation.between,
    isBlank: $q.lang.dataGrid.filterOperation.isBlank,
    isNotBlank: $q.lang.dataGrid.filterOperation.isNotBlank,
    default: $q.lang.dataGrid.filterOperation.default,
  };
}
